#!/bin/bash
cd `dirname $0`
echo '重启'
ps -eaf|grep 'demo-0.0.1'|grep -v 'grep'  |awk '{print $2}' |xargs kill -9

java -jar /Users/wangsy/.jenkins/workspace/testPeoj1/target/demo-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &